package com.itheima.autoconfig;


import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import com.itheima.prop.OosProperties;
import com.itheima.template.OosTemplate;

@EnableConfigurationProperties({
        OosProperties.class
})
public class TanhuaAutoConfiguration {

    @Bean
    public OosTemplate oosTemplate(OosProperties oosProperties){
        return new OosTemplate(oosProperties);
    }

}
